package com.zhuang.chapter17.work01;

public class Book {

	/**
	 * 图书编号
	 */
	private int id;
	/**
	 * 图书名称
	 */
	private String name;
	/**
	 * 图书单价
	 */
	private double price;;
	/**
	 * 库存数量
	 */
	private int storage;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getStorage() {
		return storage;
	}

	public void setStorage(int storage) {
		this.storage = storage;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name + ", price=" + price + ", storage=" + storage + "]";
	}

	public Book(int id, String name, double price, int storage) {
		super();
		this.id = id;
		this.name = name;
		this.price = price;
		this.storage = storage;
	}

	public Book() {
		super();
	}

}
